<?php
/* @var $this HelpinfoController */
/* @var $model Helpinfo */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'helpinfo-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
    ));
CHtml::$beforeRequiredLabel = '*';
CHtml::$afterRequiredLabel  = '：';
CHtml::$requiredCss         = '';    
?>


  <div class="formtitle"><span>救助信息</span></div>
  <ul class="forminfo" >
    <li class="hang_3  bg_b">
      <?php echo $form->labelEx($model,'helpdate',array('style'=>"text-align:right;")); ?>&nbsp;
      <?php //echo $form->textField($model,'helpdate',array('size'=>20,'maxlength'=>20,'class'=>'dfinput'));
      
       $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'attribute' => 'helpdate',  
        'model'=>$model,  
        //'value'=>'aaaa',//设置默认值
        'name'=>'helpdate',  
        'language' => 'zh_cn',
        'options' => array(  
            'showAnim' => 'fold',  
            'dateFormat' => 'yy-mm-dd',  
        ), 
        'htmlOptions'=>array(  
            'readonly'=>'readonly',  
            //'style'=>'width:90px;',  
            'class'=>'dfinput'
        )
        ));
    ?>
		<?php echo $form->error($model,'helpdate'); ?>
    </li>

    <li class="hang_3  bg_b">
     <?php echo $form->labelEx($model,'helptype',array('style'=>"text-align:right;")); ?>&nbsp;
     <?php echo $form->dropDownList($model,'helptype', CHtml::listData(Helptype::model()->findAll(),'text','text'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);")); ?>
    </li>
    
    <li class="hang_3  bg_b">
     <?php echo $form->labelEx($model,'helplevel',array('style'=>"text-align:right;")); ?>&nbsp;
     <?php echo $form->dropDownList($model,'helplevel', CHtml::listData(Helpjb::model()->findAll(),'text','text'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);")); ?>
    </li>
    <li class="hang_3  bg_b">
       <?php echo $form->labelEx($model,'helpclass',array('style'=>"text-align:right;")); ?>&nbsp;
     <?php echo $form->dropDownList($model,'helpclass', CHtml::listData(Helpclass::model()->findAll(),'text','text'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);")); ?>
  
    </li>
  </ul>
  <?php
  $hzID  =Yii::app()->request->getParam('userid');
  $dqrq = date('Y-m-d H:i:s',time());
  $dquser = Yii::app()->user->id;
    echo $form->hiddenField($model,'userid',array('size'=>20,'maxlength'=>20,'class'=>'dfinput','value'=>$hzID));
    echo $form->hiddenField($model,'indate',array('size'=>20,'maxlength'=>20,'class'=>'dfinput','value'=>$dqrq));
    echo $form->hiddenField($model,'writer',array('size'=>20,'maxlength'=>20,'class'=>'dfinput','value'=>$dquser));
  ?>
  <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="50" colspan="2" align="center">
           <input type="image" name="ImageButton2" id="ImageButton2" src="<?php echo Yii::app()->request->baseUrl; ?>/images/tj.gif" class="qd" />
          &nbsp; &nbsp; &nbsp; &nbsp;
          <input type="image" name="ImageButton2" id="ImageButton2" src="<?php echo Yii::app()->request->baseUrl; ?>/images/cz.gif" class="qd1" /></td>
      </tr>
    </table>
  </div>
	<?php echo $form->errorSummary($model); ?>
<?php $this->endWidget(); ?>

</div><!-- form -->